package com.finalministry.db.objects.address;

import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import org.codehaus.jackson.annotate.JsonIgnore;

import com.finalministry.db.objects.FlagTagNoteAbleBase;
import com.vividsolutions.jts.geom.Geometry;

/**
 * A neutral point on the map (on this planet) which can be flagged, tagged and
 * wallpapered with notes. Keep it simple, don't misuse it as contact or
 * preacher. It could be a building, a note, something to remember.
 * 
 * @author admin
 * 
 */
@Entity
@XmlRootElement
public class NeutralPoint extends FlagTagNoteAbleBase {

	@XmlTransient
	@JsonIgnore
	private Geometry point;
	private String name;

	public NeutralPoint() {

	}

	public NeutralPoint(Geometry point, String name) {
		super();
		this.point = point;
		this.name = name;
	}

	public Geometry getPoint() {
		return point;
	}

	public void setPoint(Geometry point) {
		this.point = point;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
